<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
var newWind;
function putJumpCode(){
	var cnt = 1;
	newWind.document.write('<html>\n');
	newWind.document.write('<title>HtmlDiff Navigation</title>\n');
	newWind.document.write('<body>\n');
	newWind.document.write('<form name="jump">\n');
	newWind.document.write('<input type="button" value=" |&lt; " name="First" onclick=goto_first(this.form)>&nbsp;')
	newWind.document.write('<input type="button" value=" &lt; " name="Prev" onclick=goto_prev(this.form)>&nbsp;&nbsp;\n');
	newWind.document.write('<select name=url onchange=menu_goto(this.form)> \n');
	for (var i=0; i<cnt ;i++ ) {
		newWind.document.write('<option value="#c'+i+'">Change #'+(i+1)+ '</option> \n');
		}
	newWind.document.write('');
	newWind.document.write('</select>&nbsp;&nbsp;\n');
	newWind.document.write('<input type="button" value=" &gt; " name="Next"\n');
	newWind.document.write('onclick=goto_next(this.form)>\n');
	newWind.document.write('<input type="button" value=" &gt| " name="Last"\n');
	newWind.document.write('onclick=goto_last(this.form)>\n');
	newWind.document.write('</form>\n');
	newWind.document.write('');
	newWind.document.write('<form method="POST">\n');
	newWind.document.write('<p align="center"><i><font size="3">Generated\n');
	newWind.document.write('by <a href="http://www.ComponentSoftware.com/products/htmldiff" target="_blank">HtmlDiff</a> \n');
	newWind.document.write('</form>\n');
	newWind.document.write('</body>\n');
	newWind.document.write('</html>\n');
	newWind.document.write('<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">\n');
	newWind.document.write('<!--\n');
	newWind.document.write('');
	newWind.document.write('var directCloseFlag=1;\n');
	newWind.document.write('');
	newWind.document.write('function menu_goto( menuform )\n');
	newWind.document.write('{\n');
	newWind.document.write('  var baseurl = opener.location.href ;\n');
	newWind.document.write('  var idx = baseurl.indexOf("#");\n');
	newWind.document.write('  if (idx > -1) {\n');
	newWind.document.write('	baseurl = baseurl.slice(0, idx);\n');
	newWind.document.write('  }');
	newWind.document.write('  selecteditem = menuform.url.selectedIndex ;\n');
	newWind.document.write('  newurl = menuform.url.options[ selecteditem ].value ;\n');
	newWind.document.write('  if (newurl.length != 0) {\n');
	newWind.document.write('    	opener.top.location.href = baseurl + newurl ;\n');
	newWind.document.write('  }');
	newWind.document.write('}');
	newWind.document.write('');
	newWind.document.write('function goto_prev( menuform )\n');
	newWind.document.write('{\n');
	newWind.document.write('	if(menuform.url.selectedIndex>0) menuform.url.selectedIndex--;\n');
	newWind.document.write('	menu_goto( menuform )\n');
	newWind.document.write('}');
	newWind.document.write('');
	newWind.document.write('function goto_first( menuform )\n');
	newWind.document.write('{\n');
	newWind.document.write('	menuform.url.selectedIndex = 0;	\n');
	newWind.document.write('	menu_goto( menuform );\n');
	newWind.document.write('}');
	newWind.document.write('');
	newWind.document.write('function goto_last( menuform )\n');
	newWind.document.write('{\n');
	newWind.document.write('	menuform.url.selectedIndex = menuform.url.options.length-1;	\n');
	newWind.document.write('	menu_goto( menuform );\n');
	newWind.document.write('}');
	newWind.document.write('');
	newWind.document.write('function goto_next( menuform )\n');
	newWind.document.write('{\n');
	newWind.document.write('	if(menuform.url.options.length > (menuform.url.selectedIndex+1))\n');
	newWind.document.write('	menuform.url.selectedIndex++;\n');
	newWind.document.write('	menu_goto( menuform )\n');
	newWind.document.write('}');
	newWind.document.write('');
	newWind.document.write('function restore()\n');
	newWind.document.write('{\n');
	newWind.document.write('    	focus();\n');
	newWind.document.write('	menu_goto(jump);\n');
	newWind.document.write('}');
	newWind.document.write('');
	newWind.document.write('goto_first(jump)\n');
	newWind.document.write('//-->\n');
	newWind.document.write('<');
	newWind.document.write('/SCRIPT>\n');
}
function pop_navigate(){
var isOpen = false
try {
isOpen = (newWind != null) && (!newWind.closed)
} catch (e) {}
  if (!isOpen) {
    newWind =  window.open("" ,"HtmlDiffJumpWindow","width=270,height=40")
    if (newWind.opener == null) { // for Nav 2.0x
      newWind.opener = self // this creates and sets a new prop
    }	putJumpCode();
  
} 
else 
{	newWind.execScript("restore()", "JavaScript");
  }
}
function exit(){
var isOpen = false
try {
isOpen = (newWind != null) && (!newWind.closed)
} catch (e) {}
if (isOpen) {
	newWind.close();
  }
}
//--></SCRIPT><body onunload=exit()><form method="POST">  <p align="center"><i><font size="3">Difference Analysis Generated by   <a href="http://www.ComponentSoftware.com/products/htmldiff" target="_blank">HtmlDiff</a> on  2010-12-14 22:03</font></i>&nbsp;&nbsp;
  <input type="button" value="Navigate Changes" name="Navigate" onclick=pop_navigate()></p></form></body><html>
<style type="text/css">
<!--
.HDNormal {  color: #000000;background:  #ffffff;text-decoration:none}
.HDDeleted {  color: #ff0000;background:  #ffffff;text-decoration:line-through}
.HDImgDeleted {  color: #ff0000;background-color: #ff0000}
.HDAdded {  color: #000000;background:  #ffff00;text-decoration:none}
-->
</style>
<body>
<pre>
 <span class="HDNormal">
%----------------
%Profile - P0002
%----------------
    
    %CALENDAR
    %--------
    calendar(p0002,c0002,"http://www.google.com/calendar/feeds/swtproject2%40gmail.com/private-de41a750e8534b5ab04c957b5e4ba0f1/full").
    %swtproject2,swt123456,
    
    %DATETIMES FOR CALENDAR EVENTS
    %-----------------------------
<a name="diff" id="c0"><span class="HDDeleted">    event(c0002,?:Activity,Possible,
</span></a><span class="HDDeleted">            dateTime[2009:integer,6:integer,15:integer,11:integer,15:integer],
</span><span class="HDDeleted">            dateTime[2009:integer,6:integer,15:integer,11:integer,45:integer]).
</span><span class="HDDeleted">    event(c0002,?:Activity,Possible,
</span><span class="HDDeleted">            dateTime[2009:integer,6:integer,13:integer,13:integer,0:integer],
</span><span class="HDDeleted">            dateTime[2009:integer,6:integer,13:integer,14:integer,0:integer]).  
</span><span class="HDDeleted">    event(c0002,?:Activity,Possible,
</span><span class="HDDeleted">            dateTime[2009:integer,11:integer,12:integer,14:integer,30:integer],
</span><span class="HDDeleted">            dateTime[2009:integer,11:integer,12:integer,16:integer,0:integer]).
</span><span class="HDDeleted">    event(c0002,?:Activity,Possible,
</span><span class="HDDeleted">            dateTime[2009:integer,11:integer,14:integer,12:integer,30:integer],
</span><span class="HDDeleted">            dateTime[2009:integer,11:integer,14:integer,15:integer,0:integer]).
</span><span class="HDAdded">
</span><span class="HDAdded">    event(c0002,?:Skating,Possible,
</span><span class="HDAdded">    dateTime[2010:integer,11:integer,25:integer,9:integer,30:integer],
</span><span class="HDAdded">    dateTime[2010:integer,11:integer,25:integer,11:integer,30:integer]).
</span><span class="HDAdded">
</span><span class="HDAdded">    event(c0002,?:Yoga,Possible,
</span><span class="HDAdded">    dateTime[2010:integer,11:integer,26:integer,14:integer,0:integer],
</span><span class="HDAdded">    dateTime[2010:integer,11:integer,26:integer,15:integer,30:integer]).
</span><span class="HDAdded">
</span><span class="HDAdded">    event(c0002,?:Swimming,Possible,
</span><span class="HDAdded">    dateTime[2010:integer,11:integer,23:integer,12:integer,0:integer],
</span><span class="HDAdded">    dateTime[2010:integer,11:integer,23:integer,14:integer,0:integer]).
</span><span class="HDAdded">
</span>
    %MAP
    %---
    map(p0002,m0001).

    %EXPECTED FITNESS LEVELS
    %-----------------------
    fitness(p0002,
        dateTime[2009:integer,6:integer,15:integer,11:integer,15:integer], 5:integer).
    fitness(p0002,
        dateTime[2009:integer,6:integer,13:integer,13:integer,0:integer], 7:integer).
    fitness(p0002,
        dateTime[2009:integer,11:integer,12:integer,14:integer,30:integer], 4:integer).
    fitness(p0002,
        dateTime[2009:integer,11:integer,14:integer,12:integer,30:integer], 2:integer).


    %MEETUP LOCATION FITNESS LEVELS
    %------------------------------
    level(p0002,Walking,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],2:integer).
    level(p0002,Walking,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],2:integer).
    level(p0002,Walking,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],3:integer).
    level(p0002,Walking,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],3:integer).
    level(p0002,Walking,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],6:integer).

    level(p0002,Walking,Out,DebbiesValley,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],3:integer).
    level(p0002,Walking,Out,DebbiesValley,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],4:integer).
    level(p0002,Walking,Out,DebbiesValley,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],5:integer).
    level(p0002,Walking,Out,DebbiesValley,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],6:integer).
    level(p0002,Walking,Out,DebbiesValley,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],7:integer).

    level(p0002,Running,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],3:integer).
    level(p0002,Running,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],4:integer).
    level(p0002,Running,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],4:integer).
    level(p0002,Running,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],5:integer).
    level(p0002,Running,Out,ConniesStation,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],6:integer).

    level(p0002,Running,Out,PetersWagon,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],2:integer).
    level(p0002,Running,Out,PetersWagon,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],4:integer).
    level(p0002,Running,Out,PetersWagon,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],6:integer).
    level(p0002,Running,Out,PetersWagon,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],7:integer).
    level(p0002,Running,Out,PetersWagon,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],8:integer).

    level(p0002,Running,Out,AllensBrook,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],2:integer).
    level(p0002,Running,Out,AllensBrook,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],2:integer).
    level(p0002,Running,Out,AllensBrook,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],3:integer).
    level(p0002,Running,Out,AllensBrook,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],3:integer).
    level(p0002,Running,Out,AllensBrook,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],3:integer).

    level(p0002,Swimming,In,JohnsPool,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],2:integer).
    level(p0002,Swimming,In,JohnsPool,dateTime
        [0:integer,0:integer,0:integer,0:integer,20:integer],3:integer).
    level(p0002,Swimming,In,JohnsPool,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],4:integer).
    level(p0002,Swimming,In,JohnsPool,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],5:integer).
    level(p0002,Swimming,In,JohnsPool,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],5:integer).

    level(p0002,Swimming,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],3:integer).
    level(p0002,Swimming,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],4:integer).
    level(p0002,Swimming,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],4:integer).
    level(p0002,Swimming,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],5:integer).
    level(p0002,Swimming,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],8:integer).

    level(p0002,Skating,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],2:integer).
    level(p0002,Skating,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],3:integer).
    level(p0002,Skating,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],4:integer).
    level(p0002,Skating,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],7:integer).
    level(p0002,Skating,Out,SandrasLake,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],8:integer).
    
    level(p0002,Yoga,In,LukesHall,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],2:integer).
    level(p0002,Yoga,In,LukesHall,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],2:integer).
    level(p0002,Yoga,In,LukesHall,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],2:integer).
    level(p0002,Yoga,In,LukesHall,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],3:integer).
    level(p0002,Yoga,In,LukesHall,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],3:integer).

    level(p0002,Hiking,Out,ApplePark,
        dateTime[0:integer,0:integer,0:integer,0:integer,10:integer],4:integer).
    level(p0002,Hiking,Out,ApplePark,
        dateTime[0:integer,0:integer,0:integer,0:integer,20:integer],6:integer).
    level(p0002,Hiking,Out,ApplePark,
        dateTime[0:integer,0:integer,0:integer,0:integer,40:integer],8:integer).
    level(p0002,Hiking,Out,ApplePark,
        dateTime[0:integer,0:integer,0:integer,1:integer,0:integer],10:integer).
    level(p0002,Hiking,Out,ApplePark,
        dateTime[0:integer,0:integer,0:integer,1:integer,20:integer],10:integer).
    
    %Preferred Group Sizes
    %---------------------
    groupSize(p0002,Walking,Out,1:integer,4:integer).
    groupSize(p0002,Running,Out,1:integer,4:integer).
    groupSize(p0002,Swimming,In,1:integer,6:integer).
    groupSize(p0002,Swimming,Out,2:integer,4:integer).
    groupSize(p0002,Skating,Out,1:integer,6:integer).
    groupSize(p0002,Yoga,In,1:integer,15:integer).
    groupSize(p0002,Hiking,Out,1:integer,15:integer).
    
%--------------------------
%Activities - Walking (Out)
%--------------------------

myActivity(p0002,Activity:Walking,Out,?MinRSVP,?MaxRSVP,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute],
    ?Place,dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel) :-
  calendar(p0002,?CalendarID),
  event(?CalendarID,?Activity:Walking,Possible,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]),
  participation(p0002,?Activity:Walking,Out,?MinRSVP,?MaxRSVP),
  %naf(season(?StartDay,?StartMonth,"Winter")),
  %forecast(?Location,
    %dateTime[?StartYear,?StartMonth,?StartDay,?AnyHour,?AnyMinute],
    %?LowTemp,?HighTemp,?AvgTemp,?Condition),
  %notEqual(?Condition,"Raining"),
  %lessThanOrEqual(?AvgTemp,30:integer),
  map(p0002,?Map),
  meetup(?Map,?Activity:Walking,Out,?Place),
  level(p0002,?Activity:Walking,Out,?Place,
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel),
  fitness(p0002,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute], ?ExpectedFitness),  
  greaterThanOrEqual(?ExpectedFitness,?FitnessLevel),
  goodDuration(
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]).
%--------------------------
%Activities - Running (Out)
%--------------------------

myActivity(p0002,Activity:Running,Out,?MinRSVP,?MaxRSVP,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute],
    ?Place,dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel) :-
  calendar(p0002,?CalendarID),
  event(?CalendarID,?Activity:Running,Possible,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]),
  participation(p0002,?Activity:Running,Out,?MinRSVP,?MaxRSVP),
  naf(season(?StartDay,?StartMonth,Summer)),
  %forecast(?Location,
    %dateTime[?StartYear,?StartMonth,?StartDay,?AnyHour,?AnyMinute],
    %?LowTemp,?HighTemp,?AvgTemp,?Condition),
 % notEqual(?Condition,"Raining"),
  lessThanOrEqual(?AvgTemp,30:integer),
  map(p0002,?Map),
  meetup(?Map,?Activity:Running,Out,?Place),
  level(p0002,?Activity:Running,Out,?Place,
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel),
  fitness(p0002,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute], ?ExpectedFitness),  
  greaterThanOrEqual(?ExpectedFitness,?FitnessLevel),
  goodDuration(
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]).

%--------------------------
%Activities - Swimming (In)
%--------------------------

myActivity(p0002,Activity:Swimming,In,?MinRSVP,?MaxRSVP,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute],
    ?Place,dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel) :-
  calendar(p0002,?CalendarID),
  event(?CalendarID,?Activity:Swimming,Possible,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]),
  participation(p0002,?Activity:Swimming,In,?MinRSVP,?MaxRSVP),
  season(?StartDay,?StartMonth,Summer),
  %forecast(?Location,
%   dateTime[?StartYear,?StartMonth,?StartDay,?AnyHour,?AnyMinute],
    %?LowTemp,?HighTemp,?AvgTemp,?Condition),
  %notEqual(?Condition,"Raining"),
  map(p0002,?Map),
  meetup(?Map,?Activity:Swimming,In,?Place),
  level(p0002,?Activity:Swimming,In,?Place,
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel),
  fitness(p0002,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute], ?ExpectedFitness),  
  greaterThanOrEqual(?ExpectedFitness,?FitnessLevel),
  goodDuration(
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]).
    
%---------------------------
%Activities - Swimming (Out)
%---------------------------

myActivity(p0002,Activity:Swimming,Out,?MinRSVP,?MaxRSVP,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute],
    ?Place,dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel) :-
  calendar(p0002,?CalendarID),
  event(?CalendarID,?Activity:Swimming,Possible,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]),
  participation(p0002,?Activity:Swimming,Out,?MinRSVP,?MaxRSVP),
  season(?StartDay,?StartMonth,Summer),
  map(p0002,?Map),
 % forecast(?Location,
%   dateTime[?StartYear,?StartMonth,?StartDay,?AnyHour,?AnyMinute],
%   ?LowTemp,?HighTemp,?AvgTemp,?Condition),
%  notEqual(?Condition, "Raining"),
  greaterThanOrEqual(?AvgTemp,30:integer),
  meetup(?Map,?Activity:Swimming,Out,?Place),
  level(p0002,?Activity:Swimming,Out,?Place,
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel),
  fitness(p0002,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute], ?ExpectedFitness),  
  greaterThanOrEqual(?ExpectedFitness,?FitnessLevel),
  goodDuration(
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]).

%--------------------------
%Activities - Skating (Out)
%--------------------------


myActivity(p0002,Activity:Skating,Out,?MinRSVP,?MaxRSVP,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute],
    ?Place,dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel) :-
  calendar(p0002,?CalendarID),
  event(?CalendarID,?Activity:Skating,Possible,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]),
  participation(p0002,?Activity:Skating,Out,?MinRSVP,?MaxRSVP),
  season(?StartDay,?StartMonth,Winter),
 % forecast(?Location,
%   dateTime[?StartYear,?StartMonth,?StartDay,?AnyHour,?AnyMinute],
%   ?LowTemp,?HighTemp,?AvgTemp,?Conditions),
 % greaterThanOrEqual(?AvgTemp,-10:integer),
 % lessThanOrEqual(?AvgTemp,0:integer),
 % notEqual(?Condition,"Raining"),
  map(p0002,?Map),
  meetup(?Map,?Activity:Skating,Out,?Place),
  level(p0002,?Activity:Skating,Out,?Place,
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel),
  fitness(p0002,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute], ?ExpectedFitness),  
  greaterThanOrEqual(?ExpectedFitness,?FitnessLevel),
  goodDuration(
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]).

%-------------------------
%Activities - Yogaing (In)
%-------------------------

myActivity(p0002,Activity:Yoga,In,?MinRSVP,?MaxRSVP,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute],
    ?Place,dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel) :-
  calendar(p0002,?CalendarID),
  event(?CalendarID,?Activity:Yoga,Possible,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]),
  participation(p0002,?Activity:Yoga,In,?MinRSVP,?MaxRSVP),
  map(p0002,?Map),
  meetup(?Map,?Activity:Yoga,In,?Place),
  level(p0002,?Activity:Yoga,In,?Place,
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel),
  fitness(p0002,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute], ?ExpectedFitness),  
  greaterThanOrEqual(?ExpectedFitness,?FitnessLevel),
  goodDuration(
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]).
    
%-------------------------
%Activities - Hiking (Out)
%-------------------------

myActivity(p0002,Activity:Hiking,Out,?MinRSVP,?MaxRSVP,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute],
    ?Place,dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel) :-
  calendar(p0002,?CalendarID),
  event(?CalendarID,?Activity:Hiking,Possible,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]),
  participation(p0002,?Activity:Hiking,In,?MinRSVP,?MaxRSVP),
  naf(season(?StartDay,?StartMonth,Winter)),
%  forecast(?Location,
%   dateTime[?StartYear,?StartMonth,?StartDay,?AnyHour,?AnyMinute],
%   ?LowTemp,?HighTemp,?AvgTemp,?Conditions),
%  notEqual(?Condition,"Raining"),
%  lessThanOrEqual(?AvgTemp,30:integer),
  greaterThanOrEqual(?AvgTemp,15:integer),
  map(p0002,?Map),
  meetup(?Map,?Activity:Hiking,Out,?Place),
  level(p0002,?Activity:Hiking,Out,?Place,
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],?FitnessLevel),
  fitness(p0002,
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute], ?ExpectedFitness),  
  greaterThanOrEqual(?ExpectedFitness,?FitnessLevel),
  goodDuration(
    dateTime[?DurYear,?DurMonth,?DurDay,?DurHour,?DurMinute],
    dateTime[?StartYear,?StartMonth,?StartDay,?StartHour,?StartMinute],
    dateTime[?EndYear,?EndMonth,?EndDay,?EndHour,?EndMinute]).
</span>
</pre>
</body>
</html>
